import {
    DIC
} from '@/const/dic'

// 培训计划列表
export const trainFormOption = {
    index: true,
    indexLabel: '序号',
    border: true,
    selection: false,
    addBtn: false,
    cellBtn: false,
    editBtn: false,
    columnBtn: false,
    refreshBtn: false,
    delBtn: false,
    dicData: DIC,
    align: "center",
    size: 'mini',
    menuBtn: true,
    menuWidth: 300,
    menuAlign: "center",
    column: [{
        label: "培训状态",
        prop: "trainStatus",
        width: "100",
        slot: true
    },{
        label: "培训主题",
        prop: "theme",
        width: "200",
    },{
        label: "培训日期",
        prop: "date",
        width: "170",
        slot: true
    },{
        label: "培训人",
        prop: "name",
    },{
        label: "资料",
        prop: "trainMaterials",
        width: "100",
        slot: true
    },{
        label: "参培/签到成员",
        prop: "signNum",
        width: "150",
        slot: true
    },{
        label: "现场照片",
        prop: "url",
        width: "100",
        slot: true
    },{
        label: "最后修改人",
        prop: "updateName",
        width: "150",
    },{
        label: "时间",
        prop: "updateTime",
        width: "150",
    }
    ]
}

// 添加成员----部门联级
export const departmentOption = [{
    label: '一级 1',
    children: [{
        label: '二级 1-1',
        children: [{
            label: '三级 1-1-1'
        }]
    }]
}]

// 添加成员----table
export const addMemberTableOption = {
    index:true,
    indexLabel:'序号',
    border: true,
    selection: true,
    menu: false,
    menuBtn: false,
    addBtn:false,
    cellBtn: false,
    editBtn: false,
    delBtn: false,
    dicData: DIC,
    size: 'mini',
    columnBtn: false,
    refreshBtn:false,
    align: "center",
    menuAlign: "center",
    column: [{
        label: "姓名",
        prop: "name",
    },{
        label: "联系方式",
        prop: "mobile",
    },{
        label: "部门",
        prop: "departmentName",
        slot: true
    }]
}
